From b929cd31ed85e75f97d9cc806de13076222acdc9 Mon Sep 17 00:00:00 2001 From: Nathanael Jones Date: Mon, 6 Feb 2017 17:22:36 -0700 Subject: [PATCH] Make fresh_builds_possible_with_multiple_metadata_overrides faster --- src/cargo/ops/cargo_rustc/custom_build.rs | 2 +- tests/build-script.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cargo/ops/cargo_rustc/custom_build.rs b/src/cargo/ops/cargo_rustc/custom_build.rs index 431559868..e187ab800 100644 --- a/src/cargo/ops/cargo_rustc/custom_build.rs +++ b/src/cargo/ops/cargo_rustc/custom_build.rs @@ -408,7 +408,7 @@ impl BuildOutput { } /// Sort the contents of the struct for consistent hashing. - /// Suggested if populated from a HashMap instead of a order-preserving data source + /// Suggested if populated from a HashMap instead of an order-preserving data source pub fn sort(&mut self){ self.library_paths.sort(); self.library_links.sort(); diff --git a/tests/build-script.rs b/tests/build-script.rs index 822063bf1..660ce1e71 100644 --- a/tests/build-script.rs +++ b/tests/build-script.rs @@ -1812,8 +1812,6 @@ fn fresh_builds_possible_with_multiple_metadata_overrides() { [FINISHED] dev [unoptimized + debuginfo] target(s) in [..] ")); - sleep_ms(2000); - assert_that(p.cargo("build").arg("-v").env("RUST_LOG", "cargo::ops::cargo_rustc::fingerprint=info"), execs().with_status(0).with_stderr("\ [FRESH] foo v0.5.0 ([..]) -- 2.30.2